package cn.hiapi.shopkeeper.jpa.order;

import cn.hiapi.basic.jpa.BasicRepository;
import cn.hiapi.shopkeeper.entity.order.ActivityLotteryOrder;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author AdinZ
 * @date 2023/1/3 0:04
 */

public interface ActivityLotteryOrderJpa extends BasicRepository<ActivityLotteryOrder,Long> {
    @Query("select count(e.id) from ActivityLotteryOrder e where e.aid=?1 group by e.buyerId")
    List totalUserCount(long aid);
}
